package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GxzyfYpzdMapper;
import com.ruoyi.system.domain.GxzyfYpzd;
import com.ruoyi.system.service.IGxzyfYpzdService;
import com.ruoyi.common.core.text.Convert;

/**
 * 药房字典注册Service业务层处理
 * 
 * @author GXzyf
 * @date 2022-09-13
 */
@Service
public class GxzyfYpzdServiceImpl implements IGxzyfYpzdService 
{
    @Autowired
    private GxzyfYpzdMapper gxzyfYpzdMapper;

    /**
     * 查询药房字典注册
     * 
     * @param 药品ID 药房字典注册主键
     * @return 药房字典注册
     */
    @Override
    public GxzyfYpzd selectGxzyfYpzdBy药品ID(String 药品ID)
    {
        return gxzyfYpzdMapper.selectGxzyfYpzdBy药品ID(药品ID);
    }

    /**
     * 查询药房字典注册列表
     * 
     * @param gxzyfYpzd 药房字典注册
     * @return 药房字典注册
     */
    @Override
    public List<GxzyfYpzd> selectGxzyfYpzdList(GxzyfYpzd gxzyfYpzd)
    {
        return gxzyfYpzdMapper.selectGxzyfYpzdList(gxzyfYpzd);
    }

    /**
     * 新增药房字典注册
     * 
     * @param gxzyfYpzd 药房字典注册
     * @return 结果
     */
    @Override
    public int insertGxzyfYpzd(GxzyfYpzd gxzyfYpzd)
    {
        return gxzyfYpzdMapper.insertGxzyfYpzd(gxzyfYpzd);
    }

    /**
     * 修改药房字典注册
     * 
     * @param gxzyfYpzd 药房字典注册
     * @return 结果
     */
    @Override
    public int updateGxzyfYpzd(GxzyfYpzd gxzyfYpzd)
    {
        return gxzyfYpzdMapper.updateGxzyfYpzd(gxzyfYpzd);
    }

    /**
     * 批量删除药房字典注册
     * 
     * @param 药品IDs 需要删除的药房字典注册主键
     * @return 结果
     */
    @Override
    public int deleteGxzyfYpzdBy药品IDs(String 药品IDs)
    {
        return gxzyfYpzdMapper.deleteGxzyfYpzdBy药品IDs(Convert.toStrArray(药品IDs));
    }

    /**
     * 删除药房字典注册信息
     * 
     * @param 药品ID 药房字典注册主键
     * @return 结果
     */
    @Override
    public int deleteGxzyfYpzdBy药品ID(String 药品ID)
    {
        return gxzyfYpzdMapper.deleteGxzyfYpzdBy药品ID(药品ID);
    }
}
